package cn.edu.zut.service;

import cn.edu.zut.dao.ReaderTypeDao;
import cn.edu.zut.model.ReaderType;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

public class ReaderTypeServiceImpl implements ReaderTypeService {
    @Autowired
    ReaderTypeDao readerTypeDao;

    public int insertReaderType(ReaderType readerType) {
        return readerTypeDao.insertReaderType(readerType);
    }

    public int deleteReaderType(ReaderType readerType) {
        return readerTypeDao.deleteReaderType(readerType);
    }

    public int updateReaderType(ReaderType readerType) {
        return readerTypeDao.updateReaderType(readerType);
    }

    public List<ReaderType> select_All_Reader() {
        return readerTypeDao.select_All_Reader();
    }

    public ReaderType selectByTypeName(String typeName) {
        return readerTypeDao.selectByTypeName(typeName);
    }
}
